package com.deep.common.utils;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * 订单号工具类
 *
 * @author Deep
 * @date 2022/2/27
 */
public class OrderSnUtils {
    /**
     * 生成订单号
     */
    public static String createOrderSn() {
        return IdWorker.getTimeId();
    }

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        System.out.println(OrderSnUtils.createOrderSn());
    }
}
